package com.example.swagger3code.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yum
 * @version 1.0
 */
@Api(tags = "Hello2")
@RestController
@RequestMapping
public class Hello2 {

    @GetMapping("/hello2")
    @ApiOperation("hello2接口")
    public String hello2() {
        return "hello2";
    }
}
